<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>修改拍卖品信息</title>
  <link href="css/common.css" rel="stylesheet" type="text/css" />
  <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrap">
  <!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right">
      <a href="${pageContext.request.contextPath}/logout" title="注销">注销</a>
    </div>
  </div>
  <div class="login logns produce">
    <h1 class="blues">拍卖品信息</h1>
    <form action="${pageContext.request.contextPath}/do/updateAuction" method="post" enctype="multipart/form-data">
      <input type="hidden" name="auctionId" value="${auction.auctionId}">

      <dl>
        <dd>
          <label>名称：</label>
          <input type="text" name="auctionName" class="inputh lf" value="${auction.auctionName}" />
          <div class="xzkbg spbg lf"></div>
        </dd>
        <dd>
          <label>起拍价：</label>
          <input type="text" name="auctionStartPrice" class="inputh lf"
                 value="<fmt:formatNumber value="${auction.auctionStartPrice}" pattern="#,##0.00"/>" />
          <div class="lf red laba">必须为数字</div>
        </dd>
        <dd>
          <label>底价：</label>
          <input type="text" name="auctionUpset" class="inputh lf"
                 value="<fmt:formatNumber value="${auction.auctionUpset}" pattern="#,##0.00"/>" />
          <div class="lf red laba">必须为数字</div>
        </dd>
        <dd>
          <label>开始时间：</label>
          <input type="datetime-local" name="auctionStartTime" class="inputh lf"
                 value="<fmt:formatDate value="${auction.auctionStartTime}" pattern="yyyy-MM-dd'T'HH:mm"/>" />
          <div class="lf red laba">格式：YYYY-MM-DD HH:MM:SS</div>
        </dd>
        <dd>
          <label>结束时间：</label>
          <input type="datetime-local" name="auctionEndTime" class="inputh lf"
                 value="<fmt:formatDate value="${auction.auctionEndTime}" pattern="yyyy-MM-dd'T'HH:mm"/>" />
          <div class="lf red laba">格式：YYYY-MM-DD HH:MM:SS</div>
        </dd>
        <dd class="dds">
          <label>描述：</label>
          <textarea name="auctionDesc" cols="" rows="" class="textarea">${auction.auctionDesc}</textarea>
        </dd>
        <dd>
          <label>修改图片：</label>
          <div class="lf salebd">
            <c:if test="${not empty auction.auctionPic}">
              <img src="${auction.auctionPic}" width="100" height="100" />
            </c:if>
          </div>
          <input type="file" name="auctionPicFile" class="marg10" />
        </dd>
        <dd class="hegas">
          <input type="submit" value="保 存" class="spbg buttombg buttombgs f14 lf buttomb" />
          <a href="${pageContext.request.contextPath}/do/pageList" class="spbg buttombg buttombgs f14 lf buttomb">取 消</a>
        </dd>
      </dl>
    </form>
  </div>
  <!-- main end-->
</div>
</body>
</html>